{% extends "base.html" %}
{% block title %}Admin Index{% endblock %}

{% import 'macros.html' as macros %}

{% block content %}
<h1>Admin Console</h1>
<h2>deactivate user</h2>
<form action="/_admin/deactivate_user" method="post">
  <label>user id<input type="text" name="id"></label>
  {{ macros.set_token(token) }}
  <input type="submit" value="submit">
</form>

<h2>reactivate user</h2>
<form action="/_admin/reactivate_user" method="post">
  <label>user id<input type="text" name="id"></label>
  {{ macros.set_token(token) }}
  <input type="submit" value="submit">
</form>

<h2>delete item</h2>
<form action="/_admin/delete_item" method="post">
  <label>item id<input type="text" name="id"></label>
  {{ macros.set_token(token) }}
  <input type="submit" value="submit">
</form>

<h2>add admin</h2>
<form action="/_admin/add_admin" method="post">
  <label>email<input type="text" name="email"></label>
  {{ macros.set_token(token) }}
  <input type="submit" value="submit">
</form>
{% endblock %}
